package com.zhkj.txg.module.home.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse
import java.io.Serializable

data class ShopResponse(
    val data: ShopEntity? = null
) : BaseResponse() {
}

data class ShopEntity(
    val id: Int,
    @SerializedName("shop_name")
    val shopName: String = "",
    @SerializedName("shop_img")
    val shopImg: String = "",
    @SerializedName("goods_count")
    val goodsCount: Int = 0,
    @SerializedName("collect_count")
    var collectCount: Int = 0,
    @SerializedName("is_collect")
    var isCollect: Boolean = false,
    val goods: MutableList<ShopGoodsEntity> = mutableListOf(),
    val cat: MutableList<ShopCateEntity> = mutableListOf()
) : Serializable

data class ShopGoodsEntity(
    val id: Int,
    @SerializedName("goods_name")
    val goodsName: String = "",
    val image: String = "",
    @SerializedName("market_price")
    val marketPrice: String = "0.0",
    val price: String = "0.0",
    @SerializedName("is_new")
    val isNew: String = "0",
    @SerializedName("share_earn")
    val shareEarn: String = "0",
    @SerializedName("sales_sum")
    val saleCount: Int = 0,
    @SerializedName("store_count")
    val storeCount: Int = 0
) : Serializable

data class ShopCateEntity(
    val id: Int,
    val name: String = "",
    val image: String = ""
) : Serializable